﻿using DevComponents.DotNetBar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PlanningGIS.Win.Controls;

namespace PlanningGIS.Cartographic
{
    /// <summary>
    /// 
    /// </summary>
    public partial class FrmFrameOut : Office2007Form
    {
        /// <summary>
        /// 
        /// </summary>
        public FrmFrameOut()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrmFrameOut_Load(object sender, EventArgs e)
        {
            try
            {
                ctlFrameOut1.Init();
            }
            catch (Exception ex)
            {
                MsgHelper.ShowInfomationAlert(ex.Message);
            }
           
            
        }
        
        /// <summary>
        /// 地图关联对象
        /// </summary>
        public object Hook
        {
            set
            {
                ctlFrameOut1.Hook = value;
                ctlPageBar1.Hook = ctlFrameOut1.Object;
                
            }
        }

        private void FrmFrameOut_FormClosed(object sender, FormClosedEventArgs e)
        {
            ctlFrameOut1.Clear();
        }
    }
}
